#include "ResourceData.h"
#include "ResourceManager.h"

void CResourceData::ReqRemoveMgr(int nCount)
{
	if(mCreator && IsLoadState(LOADSTATE_LOADED) && (NumRefs() <= nCount))
	{ 	GetCreator()->RequestRemove( GetResourceHandle() );
	    SetLoadState(LOADSTATE_UNLOADED);
	}
}